package com.luyang.platform.contact.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.luyang.framework.database.entity.BaseEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 账号表实体
 *
 * @author lu_yang
 */
@Getter
@Setter
@TableName("t_account")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AccountPO extends BaseEntity {

    @Serial
    private static final long serialVersionUID = -4780461013712273006L;

    /**
     * 识别码
     */
    private String identifier;

    /**
     * 用户 ID
     */
    private String userId;

    /**
     * 密码凭证
     */
    private String credential;

    /**
     * 识别码类型  {[工号:employee_no] [邮箱:email] [手机号:mobile]}
     */
    private String identityType;

    /**
     * 是否删除: {[1:删除:true] [0:未删除:false]}
     */
    private Boolean hasDelete;
}
